package net.kleinhenz.norabase.client;

import net.kleinhenz.norabase.shared.model.Battlegroup;
import net.kleinhenz.norabase.shared.model.Rune;

import com.smartgwt.client.widgets.Window;

public class BattlegroupCommentsDialog extends Window {

	private RatingCanvas ratings = null;

	public BattlegroupCommentsDialog(Battlegroup<Rune> battlegroup) {

		setSize("500px", "400px");
		setIsModal(false);
		setShowBody(true);
		setShowFooter(false);
		setShowHeaderBackground(false);
		setShowHeaderIcon(false);
		setShowMinimizeButton(false);
		setShowStatusBar(true);
		setShowTitle(true);
		centerInPage();
		setTitle("Battlegroup Properties");
        setAutoSize(true);  
        setCanDragReposition(true);  
        setCanDragResize(true);  
                
        ratings  = new RatingCanvas(true);
        ratings.setSize("100%", "100%");
        ratings.setMargin(10);
        addItem(ratings);
        ratings.loadBattlegroup(battlegroup);
	}

	public RatingCanvas getRatings() {
		return ratings;
	}

	public void setRatings(RatingCanvas ratings) {
		this.ratings = ratings;
	}
}
